/**
 * HelloController.java
 * com.lyj.eureka.client.one.controller
 * Function： TODO add descript
 *
 *   ver     date      		author
 * ──────────────────────────────────
 *   		 2017年9月12日       lyj
 *
 * Copyright (c) 2017, TNT All Rights Reserved.
*/

package com.lyj.eureka.client.two.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.netflix.discovery.DiscoveryClient;

/**
 * ClassName:HelloController
 * Function: TODO ADD FUNCTION
 * Reason:	 TODO ADD REASON
 *
 * @author   lyj
 * @version  
 * @since    version 1.0
 * @Date	 2017年9月12日	下午2:32:09
 *
 * @see 	 
 *  
 */
@RestController
public class HelloController {

    /**
     * hello: 测试eureka注册功能
     * TODO(这里描述这个方法适用条件 – 可选)
     *
     * @param  @return    
     * @return String    
     * @throws 
     * @since  　version 1.0
    */
	
    @Autowired
    private org.springframework.cloud.client.discovery.DiscoveryClient discoveryClient;
	
    @RequestMapping("/hello")
    public String hello() {
  
    	String des = discoveryClient.description();
        return "hello world eureka-02!:"+des;
    }
    


}
